package demo1

import "fmt"

type sum func(int,int) int

func S(a,b int) int{
	return a + b
}

func work(){
	var c1 chan sum
	c1 = make(chan sum)
	go func(){
		c1 <- S
	}()
	
	s1 := <- c1
	s := s1(1,2)
	fmt.Println(s)
}